home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_integer_ref3.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  425 b   |  26 lines  |  [TEXT/EDIT]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_INTEGER_REF3
  5.    
  6. creation make
  7.    
  8. feature
  9.    
  10.    make is
  11.       do
  12.      foo(3);
  13.       end;
  14.  
  15.    foo(ir: INTEGER_REF) is
  16.       do
  17.      if ir = Void then
  18.         std_output.put_string("TEST_INTEGER_REF3: ERROR Test #1%N");
  19.      end;
  20.      check
  21.         ir.item = 3;
  22.      end;
  23.       end;
  24.  
  25. end -- TEST_INTEGER_REF3
  26.